Inside an Animation End event: the name of the animation that just ended, like "attack". For an object that does not use named animations it is an empty text.
Works differently on Game Boy - Animations play as on the Advance, with smaller limits: a frame lasts up to 650 sixtieths of a second, a frame has at most 4 boxes of each kind, and a game has up to 255 animations.
Works differently on Game Boy Color - Animations play as on the Advance, with smaller limits: a frame lasts up to 650 sixtieths of a second, a frame has at most 4 boxes of each kind, and a game has up to 255 animations.
On other consoles this differs: see Side by side and How the consoles differ.
animation_ended_name: string (read-only)Inside an Animation End event: the name of the animation that just ended, like "attack". For an object that does not use named animations it is an empty text.
if (animation_ended_name == "attack") {
animation_play("idle");
}Goes back to standing when the attack animation ends.